<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/views/common/tags.jspf" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<template:header context="${context}" title="Redmine"/>
	<!-- page specific tags -->
</head>
<body class="theme-Alternate controller-groups action-index">
	<template:content context="${context}" session="${session}" sidebar="admin" menus="${adminMenus}">
		<div class="contextual">
		  <a href="${context}/admin/groups/new" class="icon icon-add">New group</a>
		</div>
	
		<h2>Groups</h2>
	
		<table class="list groups">
		  <thead><tr>
		  <th>Group</th>
		  <th>Users</th>
		  <th></th>
		  </tr></thead>
		  <tbody>
		  <ui:tr var="group" items="${groups}">
		  	<jsp:attribute name="td">
			  	<td><a href="${context}/admin/groups/${group.seq}/edit">${group.name}</a></td>
			    <td align="center">${group.users}</td>
			    <td class="buttons"><a href="${context}/admin/groups/${group.seq}/delete" class="icon icon-del" data-confirm="Are you sure?" data-method="delete" rel="nofollow">Delete</a></td>
		  	</jsp:attribute>
		  </ui:tr>
		</table>        
        <div style="clear:both;"></div>
	</template:content>
</body>
</html>

